import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex)

const state = {
  loading: false,
}

export default new Vuex.Store({
  state: {
    Menus: {},
    IndexMenus: []
  },
  mutations: {
    updateData(state, data) {
      if(data.iconCls != null && data.iconCls != ''){
        state.IndexMenus.push(data)
      }
      
    }
  },
})
